package com.zfy.cmsservice.mapper;

import com.zfy.cmsservice.entity.Students;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.zfy.cmsservice.entity.vo.StudentsVo;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 * 学生表 Mapper 接口
 * </p>
 *
 * @author testjava
 * @since 2023-11-18
 */
public interface StudentsMapper extends BaseMapper<Students> {

    List<StudentsVo> pageStudents(@Param("page") long page, @Param("size") long size, @Param("name") String name, @Param("gender") Integer gender);

    int pageStudentsTotal(@Param("page") long page, @Param("size") long size, @Param("name") String name, @Param("gender") Integer gender);

    List<Students> getStudentsName(@Param("classId") String classId, @Param("name") String name);
}
